class BaseEntity {
  BaseEntity(this.code, this.message, this.data, {this.total = 0,this.amount = 0.0,this.pageNum = 0});

  BaseEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['msg'] as String;
    data = json['data'];
    total = json['total'];
    amount = json['amount'];
    pageNum = json['pageNum'];
  }

  dynamic code;
  late String message;
  dynamic data;
  dynamic total;
  dynamic amount;
  dynamic pageNum;
}
